import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import { i18n } from './i18n';
import interactionDirective from './utils/addInteraction';
import { MusicPlayer } from '@/utils/musicPlayer';

const app = createApp(App);
const musicPlayer = new MusicPlayer([require('@/assets/music/bensound-sunny.mp3')]);
app.provide('$musicPlayer', musicPlayer);
app.use(interactionDirective);
app.use(store).use(router).mount('#app');
